home *** CD-ROM | disk | FTP | other *** search
/ DOS Vuser Deluxe 2003 October / DOS Vuser Deluxe 2003 Oct - Disc 1.iso / SKIN / typeR.wmz / typer.js < prev    next >
Text File  |  2002-06-08  |  1KB  |  99 lines

  1. var TrayOpen=false;
  2. var movOpen=false;
  3. var movVis=false;
  4.  
  5. function showMov()
  6.     {
  7.     if (Video.visible==false)
  8.         {
  9.         movVis=true;
  10.         Video.visible=true;
  11.         PList.visible=false;
  12.         Vis.visible=false;
  13.         }
  14.     }
  15.  
  16. function showPL()
  17.     {
  18.     if (PList.visible==false)
  19.         {
  20.         PList.visible=true;
  21.         Video.visible=false;
  22.         Vis.visible=false;
  23.         }
  24.     }
  25.  
  26. function showVis()
  27.     {
  28.     if (Vis.visible==false)
  29.         {
  30.         Vis.visible=true;
  31.         PList.visible=false;
  32.         Video.visible=false;
  33.         }
  34.     }
  35.  
  36. function showVid()
  37.     {
  38.     if (movOpen==false)
  39.         {
  40.         jscript:theme.openView('VidScreen');
  41.         movOpen=true;
  42.         }
  43.     else
  44.         {
  45.         jscript:theme.closeView('VidScreen');
  46.         movOpen=false;
  47.         }
  48.     }
  49.  
  50. function showMovie()
  51.     {
  52.     jscript:theme.openView('VidScreen');
  53.     }
  54.  
  55. function move_tray()
  56.     {
  57.     if (TrayOpen==false)
  58.         {
  59.         tray_cover.moveTo(-117,12,500);
  60.         TrayOpen=true;
  61.         }
  62.  
  63.     else
  64.         {
  65.         tray_cover.moveTo(0,12,500);
  66.         TrayOpen=false;
  67.         }
  68.     }
  69.  
  70. function OnOpenStateChange()
  71.     {
  72.         if(player.OpenState == osMediaOpen)
  73.         {
  74.             UpdateMetadata();
  75.             }
  76.     }
  77.  
  78. function UpdateMetadata()
  79. {
  80.     metadata.value = player.currentmedia.getiteminfo("author");
  81.     var temp = player.currentmedia.name;
  82.     if(temp != "")
  83.     {
  84.         if(metadata.value != "")
  85.         {
  86.             metadata.value +=  ": ";
  87.         }
  88.         metadata.value += temp;
  89.     }
  90.     metadata.scrolling = metadata.textWidth>metadata.width;
  91. }
  92.  
  93.  
  94.  
  95. function OnCloseVideo()
  96.     {
  97.             view.close('VidScreen');
  98.     }
  99.